import React from 'react';
import { Route } from 'react-router-dom';
import About from '@/components/About/About';
import Hello from '@/components/Hello/Hello';

const InlayPattern = () => {
  return (
    <>
      <h2>嵌套路由</h2>
      <Route path='/about'>
        <About/>
        <Route path='/about/hello'>
          <Hello/>
        </Route>
      </Route>
    </>
  );
};

export default InlayPattern;